﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OFB.DAL;
using OFB.BLL.ViewModel;
using OFB.Domain;

namespace OFB.BLL.Context
{
    public class HistoryFeedbackContext : CommonContext
    {
        public DataQueryDAL<TraineeHistoryFeedbackViewModel> HistoryFeedback { get; set; }
        public DataQueryDAL<QuestionAnswerViewModel> QuestionAnswer { get; set; }
        public DataQueryDAL<FeedbackAnswer> FeedbackAnswer { get; set; }
        public DataQueryDAL<HistoryFeedbackTraineeCourseViewModel> TraineeCourse { get; set; }

        public HistoryFeedbackContext()
        {
            HistoryFeedback = new DataQueryDAL<TraineeHistoryFeedbackViewModel>(this.connectionStringName);
            QuestionAnswer = new DataQueryDAL<QuestionAnswerViewModel>(this.connectionStringName);
            FeedbackAnswer = new DataQueryDAL<FeedbackAnswer>(this.connectionStringName);
            TraineeCourse = new DataQueryDAL<HistoryFeedbackTraineeCourseViewModel>(this.connectionStringName);
        }
    }
}
